package beans;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ValueChangeEvent;

@SessionScoped
@ManagedBean
public class ManagerPageBean {
	public ManagerPageBean(){}
	private String page="manageRequest";
	private String menu="Office Manager";

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		System.out.println("Page set to:"+page);
		this.page = page;
	}

	public String getMenu() {
		return menu;
	}

	public void setMenu(String menu) {
		this.menu = menu;
	}
	public void listener(ValueChangeEvent event){
		menu=event.getNewValue().toString();	
	}
}
